package com.xie.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xie.mapper.TmsDao;
import com.xie.pojo.Tms;
import com.xie.service.TmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tmsService")
//@Transactional
public class TmsServiceImpl extends ServiceImpl<TmsDao, Tms> implements TmsService {
    @Autowired
    private TmsDao tmsDao;

    public void setTmsDao(TmsDao tmsDao) {
        this.tmsDao = tmsDao;
    }

    public Tms findTms(Tms tms) {
        return tmsDao.findTms(tms);
    }

    public int addTms(Tms tms) {
        return tmsDao.addTms(tms);
    }

    public int deleteTms(Integer tmId) {
        return tmsDao.deleteTms(tmId);
    }

    public int updateTms(Tms tms) {
        return tmsDao.updateTms(tms);
    }

    public Tms findTmsById(Integer tmId) {
        return tmsDao.findTmsById(tmId);
    }

    public List<Tms> getAll() {
        return tmsDao.getAll();
    }


}
